<?php
namespace app\index\controller;
use think\Db;

class Index
{
    public function index()
    {
        $page = $_GET['page'];
        $data = Db::table('banner')->select();
        dump($data);die;
    }
    public function test($id,$type){
        echo $id;
        echo $type;
    }
    public function banner(){
        $data = Db::table('banner')->select();
        print_r(json_encode($data));die;
    }
}
